@import "media-queries";

.lessonContent {

  .mpy-slides {
    -webkit-box-shadow: none;
    box-shadow: none;
    img {
      min-height: 10rem;
      max-height: 29rem;
      width: 100%;
      margin: 0 auto;
    }
  }
  .mpy-lessonContent-hd {
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 0.5rem;
    .mpy-lessonContent-hd-title, .mpy-lessonContent-hd-info {
      font-size: 1.7rem;
      margin: 0;
    }
    .mpy-lessonContent-hd-discount {
      display: block;
      color: $mainFontColor;
      font-size: 1.2rem;
    }
    .mpy-lessonContent-hd-price {
      display: block;
      color: $AuxiliaryRedColor;
      font-size: 1.7rem;
      line-height: 1.7rem;
    }
  }
  .mpy-lessonContent-content {
    .mpy-lessonContent-content-param-item {
      border-top: 0.1rem solid #cccccc;
      margin: 0 2rem;
      display: block;
      .title, .icon {
        color: $mainFontColor;
        font-size: 1.2rem;
        display: inline-block;
        line-height: 3.5rem;
      }
      .title {
        float: left;
      }
      .icon {
        float: right;
      }
    }
    .mpy-lessonContent-content-comment {
      border-bottom: 0.5rem solid #eeeeee;
      border-top: 0.5rem solid #eeeeee;
      .mpy-lessonContent-content-param-item {
        border: 0;
        margin-bottom: 0;
      }
      .mpy-lessonContent-comment-item {
        margin: 0 2rem 1rem 2rem;
        .mpy-comment-item-user {
          margin: 0.5rem auto;
          .avatar {
            width: 3.5rem;
            height: 3.5rem;
            display: inline-block;
          }
          .name {
            display: inline-block;
            font-size: 1.4rem;
            line-height: 3.5rem;
            margin: 0;
          }
        }
        p {
          font-size: 1rem;
          margin: 0;
          color: $mainFontColor;
        }
      }
    }
    .mpy-lessonContent-content-info {
      margin: 0.5rem 2rem;
      .mpy-lessonContent-info-hd {
        font-size: 1.2rem;
        color: $mainFontColor;
        margin: 0;
      }
    }
  }
  .mpy-modal{
    z-index: 999;
    .mpy-modal-lessonContent-goodParam {
      .mpy-modal-bottom-bd-title {
        text-align: center;
        font-size: 1.2rem;
        color: $mainFontColor;
        margin: 0;
      }
      .mpy-modal-bottom-content-list {
        margin: 0 1rem;
        * {
          padding: 0;
          font-size: 1.2rem;
          color: $AuxiliaryFontBlackColor;
          margin: 0;
        }

        .mpy-modal-bottom-content-item {
          margin-top: 0.5rem;
          border-bottom: 0.1rem solid #cccccc;
          .avatar {
            width: 7.4rem;
            height: 7.4rem;
          }
          .title {
            color: $mainFontColor;
          }
          .content {
            font-weight: bold;
            padding-left: 0.5rem;
          }
        }
      }
    }
    .mpy-modal-lessonContent-selectParam {
      display: none;
      .mpy-modal-bottom-hd {
        position: relative;
        margin-bottom: 1rem;
        min-height: 6rem;
        * {
          font-size: 1.2rem;
          display: block;
          margin: 0;
        }
        img {
          width: 10rem;
          height: 10rem;
          border: 0.1rem solid #fff;
          display: inline-block;
          position: absolute;
          top: -3rem;
          left: 1rem;
          background: #fff;
        }
        div {
          display: inline-block;
          margin-left: 12rem;
          margin-top: 1rem;
          .price {
            color: $AuxiliaryRedColor;
          }
          .stock {
            color: $mainFontColor;
          }
          .check {
            color: $mainFontColor;
            span {
              display: inline-block;
              margin: 0 0.5rem;
              color: $mainColor;
            }
          }
        }
      }
      .mpy-modal-bottom-bd {
        background: #fff;
        margin: 0 1rem;
        max-height: 30rem;
        overflow: scroll;
        .mpy-modal-bottom-item {
          border-top: 0.1rem solid #cccccc;
          span {
            font-size: 1rem;
            color: $mainFontColor;
            margin: 0.5rem 0 0 0;
            display: block;
          }
          ul {
            text-align: center;
            li {
              height: auto;
              label {
                margin: 0;
                input:checked + span {
                  background: $mainColor;
                }
                input {
                  display: none;
                }
                span {
                  line-height: 3rem;
                  background: #eeeeee;
                  display: block;
                  text-align: center;
                  font-size: 1rem;
                  margin: 0;
                  width: 6.6rem;
                  border: 0.5rem solid #fff;
                  color: $AuxiliaryFontBlackColor;
                  border-radius: 0.7rem;
                }
              }
            }
          }
          .mpy-modal-bottom-item-num {
            margin-top: 0.5rem;
            font-size: 0;
            .title {
              line-height: 3.4rem;
              display: inline-block;
              vertical-align: middle;
              margin-right: 3.5rem;
              margin-top: 0;
            }
            .mpy-modal-bottom-item-opt {
              font-size: 0;
              position: relative;
              display: inline-block;

              span {
                font-size: 1rem;
                line-height: 3rem;
                width: 3rem;
                height: 3rem;
                display: inline-block;
                margin: 0;
                position: absolute;
                text-align: center;
                background: #eeeeee;
                border: 0.1rem solid $mainFontColor;
              }
              .item-num-add {
                background: $mainFontColor !important;
                color: white !important;
              }
              input {
                padding: 0;
                text-align: center;
                font-size: 1.2rem;
                margin-left: 2.9rem;
                display: inline-block;
                width: 6.4rem;
                height: 3rem;
                border: 0.1rem solid $mainFontColor;
              }
            }
          }

        }
      }
      .mpy-lessonContent-selectParam-ft {
        font-size: 0;
        .mpy-modal-save {
          width: 50% !important;
          display: inline-block;
        }
        .mpy-modal-return {
          width: 50% !important;
          display: inline-block;
          background: #FCD846;
        }
      }
    }
  }

}

.mpy-lessonContent-opt {
  position: fixed;
  bottom: 0;
  background: #fff;
  text-align: center;
  font-size: 0;
  height: 4rem;
  z-index: 998;
  h1 {
    font-size: 1.2rem;
    line-height: 1.5rem;
    margin: 0;
    color: $mainFontColor;
    display: block;
  }
  i {
    display: block;
    font-size: 2rem;
    line-height: 2.4rem;
    color: $mainFontColor;
  }
  .mpy-lessonContent-addFavorites {
    background: #fff;
    border: 0.1rem solid $mainFontColor;
  }
  .mpy-lessonContent-kf {
    background: #fff;
    border: 0.1rem solid $mainFontColor;
    i {
      color: #3778b4;
    }
  }

  .mpy-lessonContent-add {
    background-color: $btnColor;
    color: $AuxiliaryFontBlackColor;
    border: 0;
    border-radius: 0.1rem;
    font-size: 1.2rem;
    line-height: 4rem;
    display: inline-block;
    text-align: center;
  }
  .mpy-lessonContent-buy {
    background-color: #FCD846;
    color: $AuxiliaryFontBlackColor;
    border: 0;
    border-radius: 0.1rem;
    font-size: 1.2rem;
    line-height: 4rem;
    display: inline-block;
    text-align: center;
  }
}